<h1>Order Confirmation</h1>
<form name="checkout_confirmation" action="https://www.2checkout.com/checkout/purchase" method="post">
	<input type="hidden" name="sid" value="<{$config.vendor_id}>" />
	<input type="hidden" name="total" value="<{$totals}>" />
	<input type="hidden" name="cart_order_id" value="<{$order->id}>" />
	<input type="hidden" name="card_holder_name" value="<{$order->customers_name}>" />
	<input type="hidden" name="street_address" value="<{$order->customers_street}>" />
	<input type="hidden" name="city" value="<{$order->customers_city}>" />
	<input type="hidden" name="state" value="<{$order->customers_state}>" />
	<input type="hidden" name="zip" value="<{$order->customers_postcode}>" />
	<input type="hidden" name="country" value="<{$order->customers_country}>" />
	<input type="hidden" name="ship_name" value="<{$order->delivery_name}>" />
    <input type="hidden" name="ship_street_address" value="<{$order->delivery_street}>" />
    <input type="hidden" name="ship_city" value="<{$order->delivery_city}>" />
    <input type="hidden" name="ship_state" value="<{$order->delivery_state}>" />
    <input type="hidden" name="ship_zip" value="<{$order->delivery_postcode}>" />
    <input type="hidden" name="ship_country" value="<{$order->delivery_country}>" />
    <input type="hidden" name="id_type" value="1" />
    <{assign var=i value=1}>
    <{foreach item=cart from=$carts}>	    
		<input type="hidden" name="c_prod_<{$i}>" value="<{$cart->productEnity->id}>,<{$cart->quantity}>" />
		<input type="hidden" name="c_name_<{$i}>" value="<{$cart->productEnity->getName()}>" />    
		<input type="hidden" name="c_description_<{$i}>" value="<{$cart->productEnity->getDescription()}>" />
		<input type="hidden" name="c_price_<{$i}>" value="<{$cart->productEnity->price}>" />
    <{/foreach}>
    <input type="hidden" name="email" value="<{$currentCustomer->email}>" />
    <input type="hidden" name="phone" value="<{$order->customers_telephone}>" />
    <{if $config.testMode == "1"}>
    <input type="hidden" name="demo" value="Y" />
    <{/if}>
    <input type="hidden" name="x_receipt_link_url" value="<{$returnURL}>" />
    <input type="hidden" name="return_url" value="<{$returnURL}>" />
    <input type="submit" name="submit" value="I confirm my order" />
</form>

